#include "get_arg.h"
#include <iostream>
#include <stdlib.h>
#include <sstream>
#include <fstream>
#include <portable_timer.h>
#include <get_filename.h>
#include <print_error.h>


using namespace std;
using namespace bcpp_matrix;
using boost::lexical_cast;
using std::ostringstream;
using std::istringstream;
using std::ofstream;
using std::ifstream;


int main (int argc, char *argv[])
{
	t_program_args args;
	try
	{
		if (!process_command_line_options(argc, argv, args))
			return 1;

		string path = args.path;
		cout << "Original path    \t"	<< args.path << "\n";
		cout << "File part        \t"	<< get_filename(args.path) << "\n";
		cout << "File and last dir\t"	<< get_lastdir_filename(args.path) << "\n";


	}
	catch(std::exception& e)
	{
		std_print_error(args.CERR(),  e.what());
		return 1;

	}
	return 0;






	cerr << "\n";
	cerr << string(10, '!') << "\nEverything worked!!\n";

	return 0;
}


